
import Table from '../../../components/table';
import { IData } from '../../api/class/classes/query.api';


export default function List({ data, id }: { data: IData[]; id: string; }) {
	return <>
		<Table
			idfieldname='student_id'
			data={data}
		>
			<Table.Column<IData> title='姓名' key='name' dataIndex='name' align='center' />
			<Table.Column<IData> title='性别' key='gender' dataIndex='gender' align='center' />
			<Table.Column<IData> title='学号' key='student_id' dataIndex='student_id' align='center' />
			<Table.Column<IData> title='学院' key='college' dataIndex='college' align='center' />
			<Table.Column<IData> title='专业' key='originalmajor' dataIndex='originalmajor' align='center' />
			<Table.Column<IData> title='班级' key='originalclass' dataIndex='originalclass' align='center' />
			<Table.Column<IData> title='政治面貌' key='politicaloutlook' dataIndex='politicaloutlook' align='center' />
			<Table.Column<IData> title='联系电话' key='telephone' dataIndex='telephone' align='center' />
		</Table>
	</>;
}
